﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model
{
    public partial class T_Permissions
    {
        public PermissionModel toPOCO()
        {
            return new PermissionModel
            {
                per_id = per_id,
                per_type = per_type,
                per_name = per_name,
                per_code = per_code,
                per_note = per_note,
                create_id = create_id,
                create_name = create_name,
                create_date = create_date.ToString("yyyy-MM-dd HH:mm"),
                ver_port = ver_port,
                sm_code = sm_code,
                update_id = update_id,
                update_name = update_name,
                update_date = update_date.ToString("yyyy-MM-dd HH:mm"),
                pc_openUrl = pc_openUrl,
                pc_saveUrl = pc_saveUrl,
                pc_width = pc_width,
                pc_height = pc_height
            };
        }
    }
    public class PermissionModel
    {
        /// <summary>
        ///  开打设置地址
        /// </summary>
        public string pc_openUrl { get; set; }
        /// <summary>
        ///  保存设置地址
        /// </summary>
        public string pc_saveUrl { get; set; }
        /// <summary>
        ///  宽度
        /// </summary>
        public string pc_width { get; set; }
        /// <summary>
        ///  高度
        /// </summary>
        public string pc_height { get; set; }
        public int per_id { get; set; }
        public string per_type { get; set; }
        public string per_name { get; set; }
        public string per_code { get; set; }
        public string per_note { get; set; }
        public Nullable<int> create_id { get; set; }
        public string create_name { get; set; }
        public string sm_code { get; set; }
        public bool ver_port { get; set; }
        public string create_date { get; set; }
        public Nullable<int> update_id { get; set; }
        public string update_date { get; set; }
        public string update_name { get; set; }
    }
}
